package com.digitalchina.lxnsy.sy.changao;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;
import com.digitalchina.lxnsy.sy.bingsiwuhaihua.AddDeadRecordActivity;
import com.digitalchina.lxnsy.sy.bingsiwuhaihua.ViewDeadRecordActivity;


public class NewLambingRecordActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);

        loadUrl("newLambingRecord");
        callJsMethod("refresh");
        setTitle("新增产羔记录");

    }




    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0) {
            callJsMethod("refresh");
        }
        tag++;

    }


    @Override
    public void rightOnClick() {

    }

    public class JsApi {


        @JavascriptInterface
        public void selectEarLabelcg(Object msg) {
            go(SelectEarLabelcgActivity.class);

        }









    }
}
